home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _C04AADA4AA0A44969E506B8B459559BD < prev    next >
Encoding:
Text File  |  2004-03-17  |  1.8 KB  |  90 lines

  1.  
  2.  
  3. shader()
  4. {// >=gf3
  5.     sortweight("translucent5")
  6.     cull("none")
  7.     Shaderquality(3)
  8.     stream("color", 0)
  9.  
  10.     pass()
  11.     {
  12.         Pixelshader("Grass.psh")
  13.         tmu()
  14.         {
  15.             texture()
  16.             {
  17.                 image(TEXTURE1)
  18.                 addressfunc("clamp", "clamp", "clamp")
  19.             }
  20.         }
  21.         !include("__Clouds.mtt")
  22.  
  23.         BlendFunc("src_alpha","inv_src_alpha")
  24.         AlphaFunc("greater", 32 )
  25.         depthfunc("lequal", 0)
  26.     }
  27. }
  28.  
  29.  
  30. shader()
  31. {// >=gf3
  32.     sortweight("translucent5")
  33.     cull("none")
  34.     Shaderquality(1)
  35.     stream("color", 0)
  36.  
  37.     pass()
  38.     {
  39.         Pixelshader("GrassVeryLow.psh")
  40.         tmu()
  41.         {
  42.             texture()
  43.             {
  44.                 image(TEXTURE1)
  45.                 addressfunc("clamp", "clamp", "clamp")
  46.             }
  47.         }
  48.         BlendFunc("src_alpha","inv_src_alpha")
  49.         AlphaFunc("greater", 32 )
  50.         depthfunc("lequal", 0)
  51.     }
  52. }
  53.  
  54. shader()
  55. {//gf2
  56.     sortweight("translucent5")
  57.     cull("none")
  58.     stream("color", 0)
  59.  
  60.     pass()
  61.     {
  62.  
  63.         tmu()
  64.         {
  65.             ColorOp("mul_add", "diffuse", "tfactor", "tfactor_a")
  66.             AlphaOp("arg1", "diffuse", "current", "current")
  67.         }
  68.  
  69.         tmu()
  70.         {
  71.  
  72.             texture()
  73.             {
  74.                 Mapchannel(0)
  75.                 image(TEXTURE1)
  76.                 addressfunc("clamp", "clamp", "clamp")
  77.             }
  78.             ColorOp("mul", "texture", "current", "current")
  79.             AlphaOp("mul", "texture", "current", "current")
  80.         }
  81.           Tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  82.  
  83.         BlendFunc("src_alpha","inv_src_alpha")
  84.         AlphaFunc("greater", 32 )
  85.         depthfunc("lequal", 0)
  86.     }
  87. }
  88.  
  89.  
  90.